﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demos.Threads
{
    /// <summary>
    /// 线程传参数
    /// </summary>
    public class ParamsThread
    {

        public static void Start()
        {
            //创建线程
            Thread thread = new Thread(new ParameterizedThreadStart(Test4));
            thread.Start("参数01");

        }
        static void Test4(object par)
        {
            System.Console.WriteLine($"线程参数：{par}");
        }

    }
}
